package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class CollateClause {

    private int beginIndex;
    private int endIndex;
    private SchemaQualifiedName collationName;

    public CollateClause(int beginIndex, SchemaQualifiedName collationName) {
        this.beginIndex = beginIndex;
        this.endIndex = collationName.getEndIndex();
        this.collationName = collationName;
    }

    public int getBeginIndex() {
        return beginIndex;
    }

    public int getEndIndex() {
        return endIndex;
    }

    public SchemaQualifiedName getCollationName() {
        return collationName;
    }

}
